]> git.neil.brown.name Git - wiggle.git/commitdiff
Remove extraction of base-name of command.
authorNeil Brown <neilb@suse.de>
Mon, 7 May 2012 21:59:26 +0000 (07:59 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 7 May 2012 21:59:26 +0000 (07:59 +1000)
We don't use this any more (as use of the name 'vpatch' was discarded)
so don't bother to extract it.

Signed-off-by: NeilBrown <neilb@suse.de>
wiggle.c

index 02d4517755a488d40b94bf29e620ce7bcebe5f07..6e9715517b2861d476ec013a14f2413985a3614f 100644 (file)
--- a/wiggle.c
+++ b/wiggle.c
@@ -580,13 +580,6 @@ int main(int argc, char *argv[])
        int exit_status = 0;
        int ignore = 1;
        char *helpmsg;
-       char *base0;
-
-       base0 = strrchr(argv[0], '/');
-       if (base0)
-               base0++;
-       else
-               base0 = argv[0];
 
        while ((opt = getopt_long(argc, argv,
                                  short_options(mode), long_options,